package com.lagou.session;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {
    <E> List<E> selectList(String statementId, Object... params) throws Exception;
    <E> E selectOne(String statementId, Object... params) throws Exception;
    void close() throws SQLException;
    <E> E getMapper(Class<?> mapperClass);
    int update(String statementId, Object... params) throws Exception;
}
